<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

	protected function _initDoctype() {
		$this->bootstrap('view');
		$view = $this->getResource('view');
		$view->doctype('XHTML1_STRICT');
	}

	protected function _initPaths() {
		Zend_Controller_Action_HelperBroker::addPath(APPLICATION_PATH . '/controllers/helpers');
	}

	/**
	 *  Holen einer View
	 * http://zend-framework-community.634137.n4.nabble.com/Get-View-object-inside-a-controller-plugin-td1744981.html
	 *

	protected function _initView() {
		$this->bootstrap('view');
		$view = $this->getResource('view');
	}
	 */

	protected function _initNavigation() {
		$this->bootstrap('view'); // make sure we have a view
		$view = $this->getResource('view'); // get the view resource
		$config = new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation.xml', 'nav');
		$container = new Zend_Navigation($config);
		$view->navigation($container);
	}

	// Registrierung Plugin
	/*
		// wird vllt später gebraucht
		protected function _initPlugins() {
			$controller = Zend_Controller_Front::getInstance();
			$controller->registerPlugin(new Application_Plugin_Test());
		}
	*/

}
